import requests,json
import pandas as pd
def weather(key,city,extensions):
    url='https://restapi.amap.com/v3/weather/weatherInfo?parameters'
    params={
        'key':key,
        'city':city,
        'extensions':extensions
    }
    response=requests.get(url,params)
    r=response.json()
    return r